package
{
	import org.flixel.FlxSprite;

	public class LoadingIndicator extends FlxSprite
	{
		public static const BLUE:int = 0;
		public static const ORANGE:int = 1;
	
		public function LoadingIndicator(x:Number, y:Number, type:int=BLUE)
		{
			super(x, y);
			var image:Class = (type == BLUE) ? Res.Loading : Res.LoadingOrange;
			loadGraphic(image, true, false, 75, 75);
			addAnimation("loading", [0, 1, 2, 3, 4, 5, 6, 7], 8, true);
			play("loading");
		}
	}
}